<footer class="main-footer">
    技术支持：<a target="_blank" href="http://www.mingtengnet.com">四川明腾技术信息有限公司</a>
</footer>
</div>
<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/mingteng/js/jquery.cookie.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#riframe").height($(window).height()-126);//浏览器当前窗口可视区域高度
        $("#rightContent").height($(window).height()-126);
        $('.main-sidebar').height($(window).height()-50);
        left();
        var timestamp = Date.parse(new Date());
        $.ajax({
            type:'post',
            url:"{:U('System/login_task')}",
            data:{timestamp:timestamp},
            timeout : 100000000, //超时时间设置，单位毫秒
            success:function(){
                // 执行定时任务
            }
        });
    });
    var tmpmenu = 'Index/welcome';
    if ($.cookie('tmpm') != null) {
        tmpmenu = $.cookie('tmpm');
    }
    var act = tmpmenu.split('/');
    $('#rightContent').attr('src',"{:U('"+act[0]+"/"+act[1]+"')}");

    function makecss(obj){
        $('li[data-id="'+tmpmenu+'"]').removeClass('active');
        $(obj).addClass('active');
        tmpmenu = $(obj).attr('data-id');
        $.cookie('tmpm',tmpmenu);
    }
    function left() {
        var w = $('.main-sidebar').width();
        $("#riframe,.main-footer").animate({'margin-left':w+'px'},500);
    }
</script>
</body>
</html>